﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="ICM_Asset_Register.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Edit_Form.ICM_Asset_Register" %>
<HTML>
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>รายการแสดงรายละเอียดพัสดุ</title>    
    <link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css"/>
</head>
<body>
    <form  id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" >
      </asp:ScriptManager>
      <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
              <script type="text/javascript" src="../../Scripts/Common.js"></script>
              <script type="text/javascript">
              function AddLocation(location_seq,asset_code)
              {
                    radopen("../Add_Form/ICM_Asset_Location.aspx"+ "?location_seq="+location_seq+"&StatusName="+"Add"+"&asset_code="+asset_code ,"WindowDetail");     
              }
              function EditLocation(location_seq,asset_code)
              {
                    radopen("../Add_Form/ICM_Asset_Location.aspx"+ "?location_seq="+location_seq+"&StatusName="+"Edit"+"&asset_code="+asset_code ,"WindowDetail");     
              }
              function AddWarranty(warranty_seq,asset_code)
              {
                    radopen("../Add_Form/ICM_Asset_Warranty.aspx"+ "?warranty_seq="+warranty_seq+"&StatusName="+"Add"+"&asset_code="+asset_code ,"WindowDetailWarranty");     
              }
              function EditWarranty(warranty_seq,asset_code)
              {
                    radopen("../Add_Form/ICM_Asset_Warranty.aspx"+ "?warranty_seq="+warranty_seq+"&StatusName="+"Edit"+"&asset_code="+asset_code ,"WindowDetailWarranty");     
              }
              function closeRadWindow(sender, args) 
              {
                   $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
              }
              </script>
      </telerik:RadCodeBlock>
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="PanelData">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="PanelData" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="PanelLocation" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="PanelWarranty" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="grdLocation" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="grdWarranty" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="grdWarranty">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="grdWarranty" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
     </telerik:RadAjaxManager>                       
     <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
            <asp:Panel ID="PanelData" runat="server" CssClass="contentPaneDiv" Height="522px" ScrollBars="Auto" align = "left" >             
                                           <fieldset>  
                                                 <legend><asp:Label CssClass="font-label" ID="lblTitle" runat ="server" Text="รายละเอียดพัสดุ" Font-Bold="true" /></legend>        
                                                 <div class="formList-detail"> 
                                                         <table>
                                                                <tr>
                                                                      <td width="10px"></td>
                                                                      <td width="150px">
                                                                           <asp:Label CssClass="font-label" ID="lblAssetCode" runat ="server" Text = "รหัสพัสดุ" />
                                                                      </td>
                                                                      <td  width="300px">
                                                                           <asp:Label CssClass="font-label" ID="pAssetCode" runat ="server" />
                                                                      </td>
                                                                      <td  width="150px">
                                                                           <asp:Label CssClass="font-label" ID="lblAssetName" runat ="server" Text = "ชื่อพัสดุ" />
                                                                      </td>
                                                                      <td  width="300px">
                                                                           <asp:Label CssClass="font-label" ID="pAssetName" runat ="server" />
                                                                      </td>
                                                                </tr>
                                                         </table>
                                                 </div>
                                                 <div class="formList-detail"> 
                                                         <table>
                                                                <tr>
                                                                      <td width="10px"></td>
                                                                      <td width="150px">
                                                                           <asp:Label CssClass="font-label" ID="lblReceiveCode" runat ="server" Text = "รหัสการรับเข้า" />
                                                                      </td>
                                                                      <td width="300px">
                                                                           <asp:Label CssClass="font-label" ID="pReceiveCode" runat ="server" />
                                                                      </td>
                                                                      <td width="150px">
                                                                           <asp:Label CssClass="font-label" ID="lblReceiveDate" runat ="server" Text = "วันที่รับเข้าพัสดุ" />
                                                                      </td>
                                                                      <td width="300px">
                                                                           <asp:Label CssClass="font-label" ID="pReceiveDate" runat ="server" />
                                                                      </td>
                                                                </tr>
                                                         </table>
                                                 </div>
                                                 <div class="formList-detail"> 
                                                         <table>
                                                                <tr>
                                                                      <td width="10px"></td>
                                                                      <td width="150px">
                                                                           <asp:Label CssClass="font-label" ID="lblPrice" runat ="server" Text = "ราคาพัสดุ " />
                                                                      </td>
                                                                      <td width="300px">
                                                                          <asp:Label CssClass="font-label" ID="pPrice" runat ="server" />
                                                                      </td>
                                                                      <td width="150px">
                                                                           <asp:Label CssClass="font-label" ID="lblSerialNumber" runat ="server" Text = "รหัสเครื่อง (Serial Number): " />
                                                                      </td>
                                                                      <td width="300px">
                                                                           <asp:Label CssClass="font-label" ID="pSerialNumber" runat ="server" />
                                                                      </td>
                                                                </tr>
                                                         </table>
                                                 </div>
                                                 <div class="formList-detail"> 
                                                         <table>
                                                                <tr>
                                                                      <td width="10px"></td>
                                                                      <td width="455px">
                                                                           <asp:Label CssClass="font-label" ID="lblRemark" runat ="server" Text = "หมายเหตุ: " />
                                                                      </td>
                                                                      <td>
                                                                           <asp:Label CssClass="font-label" ID="pRemark" runat ="server" />
                                                                      </td>
                                                                </tr>
                                                         </table>
                                                 </div>
                                         </fieldset> 
                 <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" Skin="Vista" CssClass="multiPage" CausesValidation="true" AutoPostBack="True" > <%--OnTabClick="RadTabStrip1_TabClick"--%>
                                    <Tabs>
                                        <telerik:RadTab runat="server" Text="สถานที่เก็บพัสดุ" Value="Location" Selected="true" >
                                        </telerik:RadTab>
                                        <telerik:RadTab  runat="server" Text="การบำรุงรักษา" Value="Warranty" >
                                        </telerik:RadTab>
                                    </Tabs>
                 </telerik:RadTabStrip>
                 <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" >
                    <telerik:RadPageView ID="RadPageView1" runat="server" >
                          <asp:Panel ID="Panel1" runat="server" CssClass="contentPaneDiv" Height="30px" ScrollBars="Auto" >
                                <table cellpadding="0" cellspacing="0">
                                    <tr class="command-list">
                                        <td>
                                            <asp:LinkButton ID="btnAddLocation" runat="server" CssClass="LinkButton" OnClick="btnAddLocation_OnClick" >
                                                <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                          </asp:Panel>
                          <asp:Panel ID="PanelLocation" runat="server" CssClass="contentPaneDiv" ScrollBars="Auto" align="center" >
                                <table >
                                    <tr>
                                        <td>
                                             <telerik:RadGrid ID="grdLocation" runat="server" AutoGenerateColumns="false"
                                                AllowMultiRowEdit="false" AllowMultiRowSelection="true" ShowStatusBar="true"
                                                Width="850px" Height="280px" AllowPaging="true" AllowFilteringByColumn="true"
                                                GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                                GroupingSettings-GroupContinuedFormatString="" PageSize ="4"
                                                GroupingSettings-GroupContinuesFormatString=""
                                                GroupingSettings-GroupSplitFormat=""
                                                OnNeedDataSource="grdLocation_NeedDataSource"
                                                OnItemCommand="grdLocation_ItemCommand" align ="left">
                                                <MasterTableView AllowMultiColumnSorting="True" 
                                                    CellSpacing="-1" GroupLoadMode="Client"
                                                    DataKeyNames="asset_code" NoMasterRecordsText="< ไม่มีข้อมูล >" 
                                                    GroupsDefaultExpanded="true">
                                                    <RowIndicatorColumn>
                                                        <HeaderStyle Width="20px" />
                                                    </RowIndicatorColumn>
                                                    <ExpandCollapseColumn>
                                                        <HeaderStyle Width="20px" />
                                                    </ExpandCollapseColumn>
                                                    <Columns>   
                                                        <telerik:GridBoundColumn DataField="asset_code" 
                                                            UniqueName="asset_code"
                                                            FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="location_seq" 
                                                            UniqueName="location_seq"
                                                            FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="job_site_seq" 
                                                            UniqueName="job_site_seq"
                                                            FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                            CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                        </telerik:GridBoundColumn>
                                                        
                                                        <telerik:GridTemplateColumn DataField="from_location_name" 
                                                            HeaderText="สถานที่ต้นทาง" ShowFilterIcon="false" HeaderStyle-Font-Bold="true"
                                                            HeaderStyle-Width="230px" HeaderStyle-HorizontalAlign="Center" FilterControlWidth="100%" UniqueName="from_location_name">
                                                            <ItemTemplate >                                                                                                                           
                                                                <asp:LinkButton ID="tgcto_location_name" runat="server" 
                                                                    Text='<%# Eval("from_location_name") %>' 
                                                                    OnClientClick='<%# string.Format("return EditLocation(\"{0}\",\"{1}\");", Eval("location_seq"),Eval("asset_code")) %>'  > 
                                                                </asp:LinkButton>
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn DataField="to_location_name" 
                                                            HeaderText="สถานที่เก็บปัจจุบัน" ShowFilterIcon="false" HeaderStyle-Font-Bold="true"
                                                            HeaderStyle-HorizontalAlign="Center" FilterControlWidth="100%" UniqueName="to_location_name">
                                                            <ItemTemplate >                                                                                                                           
                                                                    <asp:LinkButton ID="tgcfrom_location_name" runat="server" Text='<%# Eval("to_location_name") %>' 
                                                                    OnClientClick='<%# string.Format("return EditLocation(\"{0}\",\"{1}\");", Eval("location_seq"),Eval("asset_code")) %>'  > 
                                                                    </asp:LinkButton>
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridBoundColumn DataField="location_start_date" 
                                                            HeaderText="วันที่รับเข้า" UniqueName="location_start_date" DataFormatString = "{0:D}"
                                                            FilterControlWidth="100%" AutoPostBackOnFilter="true" AllowFiltering = "true"
                                                            HeaderStyle-Width="140px"
                                                            CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                            HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="location_end_date" 
                                                            HeaderText="วันสุดท้าย" UniqueName="location_end_date"
                                                            FilterControlWidth="100%" AutoPostBackOnFilter="true" HeaderStyle-Width="140px"
                                                            CurrentFilterFunction="Contains" ShowFilterIcon="false" DataFormatString = "{0:D}"
                                                            HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Delete" 
                                                            HeaderText="ลบ" HeaderStyle-Width="35px" 
                                                            HeaderStyle-Font-Bold="true" 
                                                            HeaderStyle-HorizontalAlign="Center"> 
                                                            <FilterTemplate></FilterTemplate>
                                                            <ItemTemplate>
                                                            &nbsp;&nbsp;&nbsp;
                                                                 <asp:ImageButton ID="cmdDelete" runat="server" CommandName="DataDelete"
                                                                    ImageUrl="~/App_UI/Image/Grid/Delete.gif" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')"
                                                                    ToolTip="ลบรายการ" width="17" /> 
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                    </Columns>
                                                    <PagerStyle Mode="NumericPages" AlwaysVisible="true" 
                                                        FirstPageToolTip="กลับหน้าแรก" LastPageToolTip="ไปหน้าสุดท้าย" 
                                                        NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                                                        PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                                                </MasterTableView>
                                                <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                                                    GroupContinuedFormatString="" GroupContinuesFormatString="" 
                                                    GroupSplitFormat="" />
                                                <ClientSettings EnableRowHoverStyle="True">
                                                    <Selecting AllowRowSelect="true" />
                                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                </ClientSettings>
                                        </telerik:RadGrid> 
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    </telerik:RadPageView>
                     <telerik:RadPageView ID="RadPageView2" runat="server" >
                          <asp:Panel ID="Panel2" runat="server" CssClass="contentPaneDiv" Height="30px" ScrollBars="Auto" >
                                    <table cellpadding="0" cellspacing="0">
                                        <tr class="command-list">
                                            <td>
                                                <asp:LinkButton ID="btnAddWarranty" runat="server" CssClass="LinkButton" OnClick="btnAddWarranty_OnClick">
                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                                </asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                           </asp:Panel>
                                           <asp:Panel ID="PanelWarranty" runat="server" CssClass="contentPaneDiv" ScrollBars="Auto" align="center" >
                                                         <table>
                                                                <tr>
                                                                       <td>
                                                                                <telerik:RadGrid ID="grdWarranty" runat="server" AutoGenerateColumns="false"
                                                                                            AllowMultiRowEdit="false" AllowMultiRowSelection="true" ShowStatusBar="true"
                                                                                            Width="900px" Height="280px" AllowPaging="true" AllowFilteringByColumn="true"
                                                                                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                                                                            GroupingSettings-GroupContinuedFormatString=""
                                                                                            GroupingSettings-GroupContinuesFormatString="" PageSize ="4"
                                                                                            GroupingSettings-GroupSplitFormat=""
                                                                                            OnNeedDataSource="grdWarranty_NeedDataSource" 
                                                                                            OnItemCommand="grdWarranty_ItemCommand" align ="left">
                                                                                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" GroupLoadMode="Client"
                                                                                                DataKeyNames="asset_code" NoMasterRecordsText="< ไม่มีข้อมูล >" GroupsDefaultExpanded="true">
                                                                                                <RowIndicatorColumn>
                                                                                                    <HeaderStyle Width="20px" />
                                                                                                </RowIndicatorColumn>
                                                                                                <ExpandCollapseColumn>
                                                                                                    <HeaderStyle Width="20px" />
                                                                                                </ExpandCollapseColumn>
                                                                                                <Columns>   
                                                                                                    <telerik:GridBoundColumn DataField="asset_code" 
                                                                                                        UniqueName="asset_code"
                                                                                                        FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn DataField="warranty_seq" 
                                                                                                        UniqueName="warranty_seq"
                                                                                                        FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridTemplateColumn DataField="warranty_desc" HeaderText="รายละเอียดการประกันพัสดุ" ShowFilterIcon="false" HeaderStyle-Font-Bold="true"
                                                                                                            HeaderStyle-HorizontalAlign="Center" FilterControlWidth="100%" UniqueName="warranty_desc">
                                                                                                            <ItemTemplate >                                                                                                                           
                                                                                                                    <asp:LinkButton ID="warranty_desc" runat="server" Text='<%# Eval("warranty_desc") %>' 
                                                                                                                    OnClientClick='<%# string.Format("return EditWarranty(\"{0}\",\"{1}\");", Eval("warranty_seq"),Eval("asset_code")) %>'  > 
                                                                                                                    </asp:LinkButton>
                                                                                                            </ItemTemplate>
                                                                                                    </telerik:GridTemplateColumn>
                                                                                                    <%--<telerik:GridBoundColumn DataField="warranty_desc" 
                                                                                                        HeaderText="รายละเอียดการประกันพัสดุ" UniqueName="warranty_desc"
                                                                                                        FilterControlWidth="100%" AutoPostBackOnFilter="true" AllowFiltering = "true"
                                                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                                                    </telerik:GridBoundColumn>--%>
                                                                                                    <telerik:GridTemplateColumn DataField="warranty_remark" HeaderText="หมายเหตุเพิ่มเติม" ShowFilterIcon="false" HeaderStyle-Font-Bold="true"
                                                                                                            HeaderStyle-HorizontalAlign="Center" FilterControlWidth="100%" UniqueName="warranty_remark">
                                                                                                            <ItemTemplate >                                                                                                                           
                                                                                                                    <asp:LinkButton ID="warranty_remark" runat="server" Text='<%# Eval("warranty_remark") %>' 
                                                                                                                    OnClientClick='<%# string.Format("return EditWarranty(\"{0}\",\"{1}\");", Eval("warranty_seq"),Eval("asset_code")) %>'  > 
                                                                                                                    </asp:LinkButton>
                                                                                                            </ItemTemplate>
                                                                                                    </telerik:GridTemplateColumn>
                                                                                                    <%--<telerik:GridBoundColumn DataField="warranty_remark" 
                                                                                                        HeaderText="หมายเหตุเพิ่มเติม" UniqueName="warranty_remark"
                                                                                                        FilterControlWidth="100%" AutoPostBackOnFilter="true" AllowFiltering = "true"
                                                                                                        HeaderStyle-Width="250px"
                                                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                                                    </telerik:GridBoundColumn>--%>
                                                                                                    <telerik:GridBoundColumn DataField="warranty_start_date" DataFormatString = "{0:D}"
                                                                                                        HeaderText="วันที่เริ่มรับประกันพัสดุ" UniqueName="warranty_start_date"
                                                                                                        FilterControlWidth="100%" AutoPostBackOnFilter="true" AllowFiltering = "true"
                                                                                                        HeaderStyle-Width="140px"
                                                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn DataField="warranty_end_date" DataFormatString = "{0:D}"
                                                                                                        HeaderText="วันสุดที่รับประกันพัสดุ" UniqueName="warranty_end_date"
                                                                                                        FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                                                        HeaderStyle-Width="140px"
                                                                                                        CurrentFilterFunction="Contains" ShowFilterIcon="false" 
                                                                                                        HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Delete" HeaderText="ลบ" HeaderStyle-Width="35px" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"> 
                                                                                                        <FilterTemplate></FilterTemplate>
                                                                                                        <ItemTemplate>
                                                                                                            &nbsp;&nbsp;&nbsp;
                                                                                                                 <asp:ImageButton ID="cmdDelete" runat="server" CommandName="DataDelete"
                                                                                                                    ImageUrl="~/App_UI/Image/Grid/Delete.gif" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')"
                                                                                                                    ToolTip="ลบรายการ" width="17" /> 
                                                                                                        </ItemTemplate>
                                                                                                    </telerik:GridTemplateColumn>
                                                                                                </Columns>
                                                                                                <PagerStyle Mode="NumericPages" AlwaysVisible="true" 
                                                                                                    FirstPageToolTip="กลับหน้าแรก" LastPageToolTip="ไปหน้าสุดท้าย" 
                                                                                                    NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                                                                                                    PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                                                                                                </MasterTableView>
                                                                                    <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                                                                                        GroupContinuedFormatString="" GroupContinuesFormatString="" 
                                                                                        GroupSplitFormat="" />
                                                                                    <ClientSettings EnableRowHoverStyle="True">
                                                                                        <Selecting AllowRowSelect="true" />
                                                                                        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                                                    </ClientSettings>
                                                                                </telerik:RadGrid> 
                                                                       </td>
                                                                </tr>
                                                         </table>
                                                  </asp:Panel>
                                    </telerik:RadPageView>
                  </telerik:RadMultiPage> 
             </asp:Panel>                                                              
        </div>
        </div> 
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" >
            <Windows>
                <telerik:RadWindow ID="WindowDetail" runat="server" Width="778px" Height="495px"
                    showcontentduringload="false"  VisibleStatusbar="false"
                    Modal="true" Skin = "Vista" behaviors="Close"
                    title="แสดงรายละเอียดเกี่ยวกับพัสดุ" 
                    OnClientClose="closeRadWindow" >
                </telerik:RadWindow>
            </Windows>
            <Windows>
                <telerik:RadWindow ID="WindowDetailWarranty" runat="server" Width="778px" Height="403px"
                    showcontentduringload="false"  VisibleStatusbar="false"
                    Modal="true" Skin = "Vista" behaviors="Close"
                    title="แสดงรายละเอียดเกี่ยวกับพัสดุ" 
                    OnClientClose="closeRadWindow" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>  
     </form>   
  </body>                            
</HTML>
